package meeting;

import meeting.department.employee.Department;
import meeting.department.employee.Employee;
import meeting.subject.Subject;
import meeting.subject.concrete_subject.ConcreteSubject;

public class Client {
    public static void main(String[] args) {
        Department department1 = new Department("一号部门");
        Employee employee1 = new Employee("张晓成");
        Employee employee2 = new Employee("张琪");
        Employee employee3 = new Employee("张惠君");
        Employee employee = new Employee("领导:曹锐");
        //将前三个员工放入部门
        department1.add(employee1);
        department1.add(employee2);
        department1.add(employee3);

        Subject subject = new ConcreteSubject();

        //将会议添加到会议列表
        subject.addMeeting("4月21日会议");
        subject.addMeeting("4月22日会议");

        //将部门或者员工添加到通知列表
        subject.add(department1);
        subject.add(employee);
        //通知列表中的人
        subject.notifyEmployee();
    }
}
